/**
 * 
 */
package main;

import org.hibernate.Session;

import br.com.ufrn.aipetro.ga.domain.entity.interfaces.Model;
import br.com.ufrn.aipetro.ga.model.persist.hibernate.util.HibernateUtil;

/**
 * @author Willian
 *
 */
public class Teste {

	Session session;
	
	public Teste(Session session) {
		this.session = session;
//		session = HibernateUtil.getSessionFactory().getCurrentSession();
	}
	
	public void setSession(Session session) {
		this.session = session;
	}
	
	public void save(Model model) {
		session.save(model);
	}
}
